import { createRouter, createWebHistory } from 'vue-router'
import LoginPage from '../components/LoginPage.vue'
import HomePage from '../components/HomePage.vue'
import StepForm from '../components/StepForm.vue'
import PreviewPage from '../components/PreviewPage.vue'
import SuccessPage from '../components/SuccessPage.vue'

const routes = [
  // {
  //   path: '/',
  //   name: 'Login',
  //   component: LoginPage
  // },
  {
    path: '/home',
    name: 'Home',
    component: HomePage
  },
  {
    path: '/form',
    name: 'Form',
    component: StepForm
  },
  {
    path: '/preview',
    name: 'Preview',
    component: PreviewPage
  },
  {
    path: '/success',
    name: 'Success',
    component: SuccessPage
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
